// 1. 引入模块
import Vue from 'vue'
import Vuex from 'vuex'
import home from './modules/home'
import search from './modules/search'
import detail from './modules/detail'
import user from './modules/user'
import trade from './modules/trade'
// 2. 注册模块
Vue.use(Vuex)

// 4. 导出
 const store = new Vuex.Store({

  modules:{
    home,  //注册模块
    search,
    detail,
    user,
    trade
  }
})

export default store